class ReportsController < BaseController

  def index
    @intro_news = News.index_news.where(is_important_news: 1).where("pubtime>=?",30.days.ago).order("ordinal desc").order("hits desc").limit(10)
    @hot_sptitles = Sptitle.all.order("ordinal desc").order("created_at desc").limit(2)
    @pic_say_huali_news = News.index_news.where(category_id: NewsHelper::TSHL_CATEGORY).order("created_at desc").limit(5)


    @reports = Report.where(:check => 2).order("time desc").page params[:page]
  end

  def show
    @report = Report.where({id: params[:id]}).first
  end

end
